import axios from 'axios'

const baseUrl = '/base/answer-base-paper/'
// param

// axiosBody
export function initPage(params) {
	const url = baseUrl + 'initPage'
	return axios({
		url: url,
		method: 'post',
		params
	})
}

export function loadGrid(data) {
	const url = baseUrl + 'grid'
	return axios({
		url: url,
		method: 'post',
		data: data
	})
}

export function initEditPage(params) {
	const actionUrl = baseUrl + 'initEditPage'
	return axios({
		url: actionUrl,
		method: 'post',
		params
	})
}
